home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / dslibrary.lha / ds.library / include / clib / ds_protos.h
C/C++ Source or Header  |  1997-02-13  |  729b  |  28 lines

  1. /*
  2. **      $VER: ds_protos.h 37.0 (30.01.97)
  3. **
  4. **      prototypes for ds.library
  5. **
  6. **      (C) Copyright 1997 Markus Hillenbrand
  7. **      All Rights Reserved.
  8. */
  9.  
  10. #ifndef CLIB_DS_PROTOS_H
  11. #define CLIB_DS_PROTOS_H
  12.  
  13. #ifndef LIBRARIES_DS_H
  14. #include <libraries/ds.h>
  15. #endif 
  16.  
  17. /* These functions are available for all data structures */
  18.  
  19. /* These functions are useful with b trees on disk */
  20. int   DS_BTreeOpen        (BTREE *tree, char *fileName, int keySize, int dataSize, int (*compareFunction)(void *, void *));
  21. void  DS_BTreeClose       (BTREE t);
  22. int    DS_BTreeInsert      (BTREE t, void *key, void *data);
  23. int     DS_BTreeDelete      (BTREE t, void *key);
  24. int     DS_BTreeGetEntry    (BTREE t, void *key, void *mem);
  25.  
  26. #endif /* CLIB_DS_PROTOS_H */
  27.  
  28.